<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8"/>
    <title><%= config.name %></title>
    <link rel="stylesheet/less" type="text/css" href="public/stylesheets/styles.less">
    <script src="public/libs/less/less.min.js"></script>

    <link rel="stylesheet" type="text/css" href="bower/jquery-toast-plugin/dist/jquery.toast.min.css">

    <script src="bower/jquery/dist/jquery.min.js"></script>
    <script src="bower/jquery-toast-plugin/dist/jquery.toast.min.js"></script>

    <%if(typeof(error) !== 'undefined' && error){%>
    <script>
        $(document).ready(function () {
            $.toast({
                heading: '错误提示',
                text: '<%= error %>',
                icon: 'error',
                position: 'top-right',
                loader: false,
                stack: false
            })
        })
    </script>
    <%}%>
</head>

<body>
<section class="signed-con">
    <h2><%= config.name %></h2>

    <div class="form-signed">
        <form action='/signup' method='post'>
            <%if(typeof(name) !== 'undefined' && name){%>
            <input type="text" name="name" value="<%= name %>" placeholder="昵称" class="input-signed">
            <%}else{%>
                <input type="text" name="name" placeholder="昵称" class="input-signed">
            <%}%>
            <%if(typeof(email) !== 'undefined' && email){%>
            <input type="email" name="email" value="<%= email %>" placeholder="邮箱" class="input-signed">
            <%}else{%>
                <input type="email" name="email" placeholder="邮箱" class="input-signed">
            <%}%>
            <input type="password" name="password" placeholder="密码" class="input-signed">
            <button type="submit" class="btn-grey">注册</button>
            <p>或&nbsp;&nbsp;<a href="/signin">登录</a></p>
        </form>
    </div>
</section>


<div style="display:none;">
    <script>
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?c6cc56a5c39125422b6c9cc0607294b5";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
</div>
</body>

</html>